package com.dcy.znoa.service.publiz;

import com.dcy.znoa.common.exception.BusinessException;
import com.dcy.znoa.common.util.pojo.JsonCommon;
import com.dcy.znoa.common.util.pojo.JsonForList;
import com.dcy.znoa.controller.publiz.model.department.SelectDepartmentModel;
import com.dcy.znoa.domain.publiz.Department;
import com.dcy.znoa.domain.publiz.Place;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
public interface PlaceService {
    //查询部门时，必须加 comp_id
//    public List selectList(SelectPlaceModel model) throws InvocationTargetException, IllegalAccessException;

    //查询园区下场所的树形结构
    public Place selectTreeByParkId(Long parkId);

    //查询场所下场所的树形结构
    public Place selectTreeByPlaceId(Long placeId);

    //更新缓存
    public void updateRedis(Long parkId);

    public Integer insert(Place var1) throws BusinessException;

    public Integer updateById(Place var1) throws BusinessException;//修改

    public void updateRedis(Integer parkId) ;

    public Integer deleteById(Long placeId);//物理删除

    Place selectSeeTreeByParkId(long parkId);//查询园区场所下的所有场所，并标记是否可编辑

    Place selectSeeTreeByCompId(Long compId);//查询园区场所及本公司场所，并标记只有本公司可编辑
}
